//---------------------------------------------------------------------------

#ifndef MallaH
#define MallaH
#include "PV3D.h"
#include "Cara.h"
#include "Objeto3D.h"

//--------------------------------------------------------------------------
class Malla : public Objeto3D
{
 protected:
        int _nVertice;
        PV3D **_vertice;
        int _nNormal;
        PV3D **_normal;
        int _nCara;
        Cara **_cara;
        //numNormales=numCaras

        PV3D* newell(PV3D**,PV3D**&,VerticeNormal**,int);
 public:
        Malla();
        Malla(int,PV3D**,int,PV3D**,int,Cara**);
        virtual ~Malla();

        virtual void dibuja(bool);
        virtual void dibuja();
        virtual void pintaNormales();

        PV3D* matrizPorPunto(double**,PV3D*);
};

//---------------------------------------------------------------------------
#endif
